{% extends "app/base.html" %}

{% block title %}
    添加作者
{% endblock title %}


{% block content-header %}
    添加作者
    <div style="float: right;">
        <a class="btn btn-default btn-xs" href="/">
            <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> 返回
        </a>
    </div>
{% endblock content-header %}
{% block content-body %}

    <form class="form-horizontal" action="/app/author/add/" method="post">
        <div class="form-group">
            <label for="name" class="col-sm-2 control-label">作者名</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="name" placeholder="作者名">
            </div>
        </div>
        <div class="form-group">
            <label for="phone" class="col-sm-2 control-label">手机号</label>
            <div class="col-sm-5">
                <input type="number" class="form-control" name="phone" placeholder="手机号">
            </div>
        </div>
        <div class="form-group">
            <label for="addr" class="col-sm-2 control-label">地址</label>
            <div class="col-sm-5">
                <input type="text" class="form-control" name="addr" placeholder="地址">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-default">提交</button>
            </div>
        </div>
    </form>
{% endblock content-body%}